package com.his.bean;

import java.io.Serializable;
import java.util.Date;

/**
 * 历史病历
 * @TableName dzm_his_care_history
 */
public class DzmHisCareHistory implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 医院id
     */
    private Integer hospitalId;

    /**
     * 医生id
     */
    private Integer doctorId;

    /**
     * 患者id
     */
    private Integer patientId;

    /**
     * 科室id
     */
    private Integer departmentId;

    /**
     * 接诊类型：0初诊，1复诊，2急诊
     */
    private Boolean typeId;

    /**
     * 是否传染，0否，1是
     */
    private Boolean isContagious;

    /**
     * 发病日期
     */
    private Date caseDate;

    /**
     * 插入时间，php时间戳
     */
    private Integer addtime;

    /**
     * 诊断编号
     */
    private String caseCode;

    /**
     * 主诉
     */
    private String caseTitle;

    /**
     * 诊断信息
     */
    private String caseResult;

    /**
     * 医生建议
     */
    private String doctorTips;

    /**
     * 备注
     */
    private String memo;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 医院id
     */
    public Integer getHospitalId() {
        return hospitalId;
    }

    /**
     * 医院id
     */
    public void setHospitalId(Integer hospitalId) {
        this.hospitalId = hospitalId;
    }

    /**
     * 医生id
     */
    public Integer getDoctorId() {
        return doctorId;
    }

    /**
     * 医生id
     */
    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    /**
     * 患者id
     */
    public Integer getPatientId() {
        return patientId;
    }

    /**
     * 患者id
     */
    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    /**
     * 科室id
     */
    public Integer getDepartmentId() {
        return departmentId;
    }

    /**
     * 科室id
     */
    public void setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
    }

    /**
     * 接诊类型：0初诊，1复诊，2急诊
     */
    public Boolean getTypeId() {
        return typeId;
    }

    /**
     * 接诊类型：0初诊，1复诊，2急诊
     */
    public void setTypeId(Boolean typeId) {
        this.typeId = typeId;
    }

    /**
     * 是否传染，0否，1是
     */
    public Boolean getIsContagious() {
        return isContagious;
    }

    /**
     * 是否传染，0否，1是
     */
    public void setIsContagious(Boolean isContagious) {
        this.isContagious = isContagious;
    }

    /**
     * 发病日期
     */
    public Date getCaseDate() {
        return caseDate;
    }

    /**
     * 发病日期
     */
    public void setCaseDate(Date caseDate) {
        this.caseDate = caseDate;
    }

    /**
     * 插入时间，php时间戳
     */
    public Integer getAddtime() {
        return addtime;
    }

    /**
     * 插入时间，php时间戳
     */
    public void setAddtime(Integer addtime) {
        this.addtime = addtime;
    }

    /**
     * 诊断编号
     */
    public String getCaseCode() {
        return caseCode;
    }

    /**
     * 诊断编号
     */
    public void setCaseCode(String caseCode) {
        this.caseCode = caseCode;
    }

    /**
     * 主诉
     */
    public String getCaseTitle() {
        return caseTitle;
    }

    /**
     * 主诉
     */
    public void setCaseTitle(String caseTitle) {
        this.caseTitle = caseTitle;
    }

    /**
     * 诊断信息
     */
    public String getCaseResult() {
        return caseResult;
    }

    /**
     * 诊断信息
     */
    public void setCaseResult(String caseResult) {
        this.caseResult = caseResult;
    }

    /**
     * 医生建议
     */
    public String getDoctorTips() {
        return doctorTips;
    }

    /**
     * 医生建议
     */
    public void setDoctorTips(String doctorTips) {
        this.doctorTips = doctorTips;
    }

    /**
     * 备注
     */
    public String getMemo() {
        return memo;
    }

    /**
     * 备注
     */
    public void setMemo(String memo) {
        this.memo = memo;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisCareHistory other = (DzmHisCareHistory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getHospitalId() == null ? other.getHospitalId() == null : this.getHospitalId().equals(other.getHospitalId()))
            && (this.getDoctorId() == null ? other.getDoctorId() == null : this.getDoctorId().equals(other.getDoctorId()))
            && (this.getPatientId() == null ? other.getPatientId() == null : this.getPatientId().equals(other.getPatientId()))
            && (this.getDepartmentId() == null ? other.getDepartmentId() == null : this.getDepartmentId().equals(other.getDepartmentId()))
            && (this.getTypeId() == null ? other.getTypeId() == null : this.getTypeId().equals(other.getTypeId()))
            && (this.getIsContagious() == null ? other.getIsContagious() == null : this.getIsContagious().equals(other.getIsContagious()))
            && (this.getCaseDate() == null ? other.getCaseDate() == null : this.getCaseDate().equals(other.getCaseDate()))
            && (this.getAddtime() == null ? other.getAddtime() == null : this.getAddtime().equals(other.getAddtime()))
            && (this.getCaseCode() == null ? other.getCaseCode() == null : this.getCaseCode().equals(other.getCaseCode()))
            && (this.getCaseTitle() == null ? other.getCaseTitle() == null : this.getCaseTitle().equals(other.getCaseTitle()))
            && (this.getCaseResult() == null ? other.getCaseResult() == null : this.getCaseResult().equals(other.getCaseResult()))
            && (this.getDoctorTips() == null ? other.getDoctorTips() == null : this.getDoctorTips().equals(other.getDoctorTips()))
            && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getHospitalId() == null) ? 0 : getHospitalId().hashCode());
        result = prime * result + ((getDoctorId() == null) ? 0 : getDoctorId().hashCode());
        result = prime * result + ((getPatientId() == null) ? 0 : getPatientId().hashCode());
        result = prime * result + ((getDepartmentId() == null) ? 0 : getDepartmentId().hashCode());
        result = prime * result + ((getTypeId() == null) ? 0 : getTypeId().hashCode());
        result = prime * result + ((getIsContagious() == null) ? 0 : getIsContagious().hashCode());
        result = prime * result + ((getCaseDate() == null) ? 0 : getCaseDate().hashCode());
        result = prime * result + ((getAddtime() == null) ? 0 : getAddtime().hashCode());
        result = prime * result + ((getCaseCode() == null) ? 0 : getCaseCode().hashCode());
        result = prime * result + ((getCaseTitle() == null) ? 0 : getCaseTitle().hashCode());
        result = prime * result + ((getCaseResult() == null) ? 0 : getCaseResult().hashCode());
        result = prime * result + ((getDoctorTips() == null) ? 0 : getDoctorTips().hashCode());
        result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", hospitalId=").append(hospitalId);
        sb.append(", doctorId=").append(doctorId);
        sb.append(", patientId=").append(patientId);
        sb.append(", departmentId=").append(departmentId);
        sb.append(", typeId=").append(typeId);
        sb.append(", isContagious=").append(isContagious);
        sb.append(", caseDate=").append(caseDate);
        sb.append(", addtime=").append(addtime);
        sb.append(", caseCode=").append(caseCode);
        sb.append(", caseTitle=").append(caseTitle);
        sb.append(", caseResult=").append(caseResult);
        sb.append(", doctorTips=").append(doctorTips);
        sb.append(", memo=").append(memo);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}